package xyz.yq56.easytool.configuration;

import javax.annotation.Resource;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import xyz.yq56.easytool.properties.EasyToolProperties;
import xyz.yq56.easytool.provider.jwt.JwtProvider;

/**
 * @author yi qiang
 * @date 2021/9/17 0:18
 */
@Configuration
@EnableConfigurationProperties(EasyToolProperties.class)
public class EasyToolAutoConfiguration {

    @Resource
    private EasyToolProperties easyToolProperties;

    @Bean
    public JwtProvider jwtProvider() {
        return new JwtProvider();
    }

}
